package org.adw.launcher2.ld.secret.ui;

import org.adw.launcher2.R;
import org.adw.launcher2.ld.secret.datahider.MyDataHider;
import org.adw.launcher2.ld.secret.db.DatabaseHelper;
import org.adw.launcher2.ld.secret.ui.utils.Global;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

/*
 * Main screen 
 */
public class MainActivity extends Activity {
	public final String TAG = getClass().getSimpleName();
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "onCreate");
        setContentView(R.layout.main);
        
        // Init db
        Global.dbHelper = DatabaseHelper.getInstance(this);
        
        // Check for back up my data
//        MyDataHider.backupAllMyData();
        
        // TODO (condorhero01) Show GUI to interact with my data: contacts, sms...
        
        // TODO Can the application run in background, user enter some key to active/inactive
    }
    
    @Override
    protected void onDestroy() {
    	super.onDestroy();
    	Log.d(TAG, "onDestroy");
    	
    	// Close db on exit app
//    	Global.dbHelper.close();
    }
}